/*
 * @Description:
 * @Version: 2.0
 * @Autor: zss
 * @Date: 2024-03-18 16:49:12
 * @LastEditors: swc
 * @LastEditTime: 2024-08-19 15:34:34
 */
import { T_srv, Tsrv, ifs, ts, tvs, vue } from '@/services';
import { N_userPrefTemplate } from './types';

const styleTemplateColumns = () => [
  {
    // title: 'TemplateName',
    title: Tsrv.getI18nByValue('模板名'),
    key: 'template_name',
    align: 'center'
  },
  {
    title: Tsrv.getI18nByValue('操作'),
    slot: 'action',
    align: 'center'
  }
];

const styleTemplateData = () => [
  {
    template_name: Tsrv.getI18nBySrv('系统默认模板'),
    f_comment: 'sysTemplate'
  },
  {
    template_name: Tsrv.getI18nBySrv('用户默认模板'),
    f_comment: 'userTemplate'
  }
];

const fontFamilyData = () => [
  '微软雅黑 Regular, 微软雅黑, sans-serif',
  '楷体 Regular, KaiTi, sans-serif',
  '华文隶书 Regular, LiSu, sans-serif',
  '方正舒体 Regular, FangZhengShuTi, sans - serif',
  '华文行楷 Regular, STXingkai, sans-serif',
  '宋体 Regular, SimSun, sans-serif'
];

const fontSizeData = () => [
  {
    value: '16px',
    label: Tsrv.getI18nByValue('大')
  },
  {
    value: '14px',
    label: Tsrv.getI18nByValue('中')
  },
  {
    value: '12px',
    label: Tsrv.getI18nByValue('小')
  }
];

const groupCode = () => [
  {
    value: 0,
    label: Tsrv.getI18nBySrv('系统级')
  },
  {
    value: 1,
    label: Tsrv.getI18nBySrv('用户级')
  }
];

const bgColorData = () => [
  '#5a6b92',
  '#54658a',
  '#ffffff',
  '#f1f1f1',
  '#f8f8f8',
  '#e9ecf3',
  'rgb(247, 247, 247)',
  'rgba(242, 242, 242, 1)',
  'rgb(245, 245, 245)',
  'rgba(255, 188, 131, 0.22)',
  'rgba(0, 128, 0, 0)',
  '#2d8eff',
  '#EBF4FF',
  '#C2DEFF',
  '#99C9FF',
  '#70B3FF',
  '#479DFF',
  '#1E89FF',
  '#006DEA',
  '#0055B6',
  '#003D82',
  '#00244E'
];
const fontColorData = () => [
  '#313131',
  'rgba(255, 255, 255, 0.9)',
  '#515a6e',
  '#2d8eff',
  '#57a3f3',
  '#1D2129',
  '#606266',
  '#909399',
  '#A8ABB2',
  '#C0C4CC',
  '#c5c8ce'
];

export {
  T_srv,
  Tsrv,
  bgColorData,
  fontColorData,
  fontFamilyData,
  N_userPrefTemplate,
  fontSizeData,
  groupCode,
  ifs,
  styleTemplateColumns,
  styleTemplateData,
  ts,
  tvs,
  vue
};
